package com.example.pt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.util.Date;

/**
 * 推荐反馈实体类
 * 用于存储用户对推荐内容的反馈信息
 */
@Entity
@TableName("recommendation_feedback")
public class RecommendationFeedback {
    
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 用户ID
     */
    private Integer userId;
    
    /**
     * 种子ID
     */
    private Integer torrentId;
    
    /**
     * 反馈类型：0-不感兴趣，1-内容低质，2-重复推荐，3-其他原因
     */
    private Integer feedbackType;
    
    /**
     * 反馈原因描述（可选）
     */
    private String reason;
    
    /**
     * 反馈时间
     */
    private Date createTime;
    
    /**
     * 批次ID，标识同一批次的推荐内容
     */
    private String batchId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getTorrentId() {
        return torrentId;
    }

    public void setTorrentId(Integer torrentId) {
        this.torrentId = torrentId;
    }

    public Integer getFeedbackType() {
        return feedbackType;
    }

    public void setFeedbackType(Integer feedbackType) {
        this.feedbackType = feedbackType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBatchId() {
        return batchId;
    }

    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }
} 